ActiveReports 12
Flatten<T>(T,Func<T,T>) Method

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.DataEngine.Extensions Namespace > EnumerableExtensions Class > Flatten Method : Flatten<T>(T,Func<T,T>) Method
Item type.
The object of type T.
function that returns of children object of type T.
This method extends the LINQ methods to obtain a single-level collection of descendants(is an object) of an object of type T
Syntax
'Declaration
 
Public Overloads Shared Function Flatten(Of T)( _
   ByVal source As T, _
   ByVal childSelector As Func(Of T,T) _
) As IEnumerable(Of T)
public static IEnumerable<T> Flatten<T>( 
   T source,
   Func<T,T> childSelector
)

Parameters

source
The object of type T.
childSelector
function that returns of children object of type T.

Type Parameters

T
Item type.

Return Value

Returns a one level list of elements of type T.
See Also

Reference

EnumerableExtensions Class
EnumerableExtensions Members
Overload List